package itdfq.dfq.Structural_Patterns.waiguan;

import java.sql.SQLOutput;

/**
 * @Author GocChin
 * @Date 2021/4/19 18:59
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Sum {
    private CPU cpu=new CPU();
    private Neicun neicun=new Neicun();
    private  OS os=new OS();
    private  Yingpan yingpan=new Yingpan();
    public void kai() {
        System.out.println("打开主机开关");
        cpu.run();
        neicun.check();
        os.load();
        yingpan.read();
    }
    public void guan(){
        System.out.println("关闭主机开关");
        cpu.notrun();
        neicun.notcheck();
        os.notload();
        yingpan.noeread();
    }
}
